SERVER_SOURCE := main/main.c main/map_querys.c io/load_mapa.c io/print.c io/drawer.c array/array.c marshaling/marshaling.c marshaling/querys_answer.c  ipcs/semaphores.c
CLIENT_SOURCE := aerolineas/aerolineas.c aerolineas/aviones.c io/load_aerolinea.c array/array.c marshaling/marshaling.c marshaling/querys.c ipcs/semaphores.c

.PHONY: pipes mq shrmem socket


CLIENT_P := client
SERVER_P := server

pipes:
	gcc -lrt -o $(CLIENT_P) $(CLIENT_SOURCE) ipcs/pipes.c
	gcc -lrt -o $(SERVER_P) $(SERVER_SOURCE) ipcs/pipes.c


mq: 
	gcc -lrt -o $(CLIENT_P) $(CLIENT_SOURCE) ipcs/mq.c
	gcc -lrt -o $(SERVER_P) $(SERVER_SOURCE) ipcs/mq.c
	
shrmem: 
	gcc -lrt -o $(CLIENT_P) $(CLIENT_SOURCE) ipcs/shrmem.c
	gcc -lrt -o $(SERVER_P) $(SERVER_SOURCE) ipcs/shrmem.c
	
socket: 
	gcc -lrt -o $(CLIENT_P) $(CLIENT_SOURCE) ipcs/socket.c
	gcc -lrt -o $(SERVER_P) $(SERVER_SOURCE) ipcs/socket.c
